import { ApiProperty } from '@nestjs/swagger';
import { IsEmail, IsString } from 'class-validator';
export class CreateUserDto {
  @ApiProperty({
    example: 'John',
    description: 'website url you want',
  })
  @IsString()
  name: string;

  @ApiProperty({ example: 'john@gmail.com', description: 'email if user' })
  @IsEmail()
  email: string;

  @ApiProperty({ example: 'password', description: 'password' })
  @IsString()
  password: string;
}
